import request from '@/utils/request'

export function getRewardsPunishmentsList(params) {
  return request({
    url: '/neo4j/rewards-punishments/list',
    method: 'get',
    params
  })
}

export function deleteRewardsPunishments(id) {
  return request({
    url: `/neo4j/rewards-punishments/${id}`,
    method: 'delete'
  })
}

export function addRewardsPunishments(data) {
  return request({
    url: '/neo4j/rewards-punishments',
    method: 'post',
    data
  })
}

export function updateRewardsPunishments(id, data) {
  return request({
    url: `/neo4j/rewards-punishments/${id}`,
    method: 'put',
    data
  })
} 